dart loop through list

83

for (var i = 0; i < list.length; i++) {
  print(list[i]);
}
List<int> ages = [29, 27, 42];
ages.forEach((int age) => print(age));

Comments

Submit
0 Comments